---
title: toUpperCase
description: Creates a to upper case transformation action.
source: /actions/toUpperCase/toUpperCase.ts
contributors:
  - fabian-hiller
---

import { ApiList, Property } from '~/components';
import { properties } from './properties';

# toUpperCase

Creates a to upper case transformation action.

```ts
const Action = v.toUpperCase();
```

## Returns

- `Action` <Property {...properties.Action} />

## Examples

The following examples show how `toUpperCase` can be used.

### Lower case string

Schema that transforms a string to upper case.

```ts
const StringSchema = v.pipe(v.string(), v.toUpperCase());
```

## Related

The following APIs can be combined with `toUpperCase`.

### Schemas

<ApiList items={['any', 'custom', 'string']} />

### Methods

<ApiList items={['pipe']} />

### Utils

<ApiList items={['isOfKind', 'isOfType']} />
